public class Main {
    public static void main(String[] args) {
        Singleton singleton = Singleton.getInstance();
        singleton.doSomething();

        SingletonSync singletonSync = SingletonSync.getInstance();
        singletonSync.doSomething();
    }
}
